<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragments/head :: head(~{:: title})">
    <title>版本记录</title>
    <link rel="stylesheet" href="../../static/css/bootstrap.min.css"/>
</head>
<body>
<nav th:replace="fragments/navbar :: navbar">导航栏</nav>
<div class="container-fluid">
    <div th:insert="fragments/alert :: alert">alert</div>
    <h3 class="text-center">版本记录</h3>
    <div>
        <table class="table table-bordered">
            <thead class="text-center">
            <tr>
                <td width="5%">序号</td>
                <td width="10%">版本号</td>
                <td width="15%">创建时间</td>
                <td width="30%">说明</td>
                <td width="40%">操作</td>
            </tr>
            </thead>
            <tbody class="text-center">
            <tr th:each="version,iterStat : ${list}">
                <td th:text="${iterStat.count}">1</td>
                <td>
                    <a th:text="${version.versionName}" th:href="@{'/web/conf/version/view/' + ${version.id} }">编号</a>
                </td>
                <td th:text="${#dates.format( version.createDate, 'yyyy-MM-dd HH:mm')}">2017-10-12</td>
                <td class="text-left" th:text="${version.remarks}">备注</td>
                <td>
                    <div class="col-sm-6 form-group" th:each="fileInfo: ${tableFileInfoList}">
                        <button class="form-control btn-small">
                            <a th:href="@{'/web/cg/version/' + ${version.id} + '/type/' + ${fileInfo.type} }" th:text="'生成' + ${fileInfo.type}">生成</a>
                        </button>
                    </div>
                    <div class="col-sm-12" th:if="${version.id != '00000000000000000000000000000000'}" >
                        <button class="form-control btn-small">
                            <a th:href="@{'/web/conf/version/delete/' + ${version.id} }">删除</a>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div th:replace="fragments/footer :: copy">版权信息</div>
</div>

</body>
</html>